<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Pepr3D: pepr3d::Geometry::OpenGlData Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="pepr3d_icon.svg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Pepr3D
   &#160;<span id="projectnumber">v1.0</span>
   </div>
   <div id="projectbrief">Pepr3D is a 3D graphics editor designed for FDM printing</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('structpepr3d_1_1_geometry_1_1_open_gl_data.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structpepr3d_1_1_geometry_1_1_open_gl_data-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">pepr3d::Geometry::OpenGlData Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>All OpenGL buffers of the <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>.  
 <a href="structpepr3d_1_1_geometry_1_1_open_gl_data.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_geometry_8h_source.html">Geometry.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data_1_1_info.html">Info</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Always editable struct that keeps track of changes since last frame Updates to color/highlight buffer set this flag to true <a class="el" href="classpepr3d_1_1_model_view.html" title="The main part of the user interface, shows the geometry to the user.">ModelView</a> resets the flag to false when it updates OpenGl data.  <a href="structpepr3d_1_1_geometry_1_1_open_gl_data_1_1_info.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ae087e1484346b1ef7af7f04e6d745745"><td class="memItemLeft" align="right" valign="top"><a id="ae087e1484346b1ef7af7f04e6d745745"></a>
std::vector&lt; glm::vec3 &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data.html#ae087e1484346b1ef7af7f04e6d745745">vertexBuffer</a></td></tr>
<tr class="memdesc:ae087e1484346b1ef7af7f04e6d745745"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vertex buffer with the same data as mTriangles for OpenGL to render the mesh. Contains position and color data for each vertex. <br /></td></tr>
<tr class="separator:ae087e1484346b1ef7af7f04e6d745745"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5741e251aec5d181e48fbf2d9e56112d"><td class="memItemLeft" align="right" valign="top"><a id="a5741e251aec5d181e48fbf2d9e56112d"></a>
std::vector&lt; ColorIndex &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data.html#a5741e251aec5d181e48fbf2d9e56112d">colorBuffer</a></td></tr>
<tr class="memdesc:a5741e251aec5d181e48fbf2d9e56112d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Color buffer, keeping the invariant that every triangle has only one color - all three vertices have to have the same color. It is aligned with the vertex buffer and its size should be always equal to the vertex buffer. <br /></td></tr>
<tr class="separator:a5741e251aec5d181e48fbf2d9e56112d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1e3327043c8d4e8924495db62eb2ad9"><td class="memItemLeft" align="right" valign="top"><a id="ab1e3327043c8d4e8924495db62eb2ad9"></a>
std::vector&lt; glm::vec3 &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data.html#ab1e3327043c8d4e8924495db62eb2ad9">normalBuffer</a></td></tr>
<tr class="memdesc:ab1e3327043c8d4e8924495db62eb2ad9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normal buffer, the triangle has same normal for its every vertex. It is aligned with the vertex buffer and its size should be always equal to the vertex buffer. <br /></td></tr>
<tr class="separator:ab1e3327043c8d4e8924495db62eb2ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad66b73ae688939f518a57411a9f02671"><td class="memItemLeft" align="right" valign="top"><a id="ad66b73ae688939f518a57411a9f02671"></a>
std::vector&lt; uint32_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data.html#ad66b73ae688939f518a57411a9f02671">indexBuffer</a></td></tr>
<tr class="memdesc:ad66b73ae688939f518a57411a9f02671"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index buffer for OpenGL frontend., specifying the same triangles as in mTriangles. <br /></td></tr>
<tr class="separator:ad66b73ae688939f518a57411a9f02671"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c61b7f1139d0a7fa632ab221546e81b"><td class="memItemLeft" align="right" valign="top"><a id="a8c61b7f1139d0a7fa632ab221546e81b"></a>
std::vector&lt; GLint &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data.html#a8c61b7f1139d0a7fa632ab221546e81b">highlightMask</a></td></tr>
<tr class="memdesc:a8c61b7f1139d0a7fa632ab221546e81b"><td class="mdescLeft">&#160;</td><td class="mdescRight">boolen for each triangle that indicates if the triangle should display cursor highlight Used to limit the highlight to continuous surface <br /></td></tr>
<tr class="separator:a8c61b7f1139d0a7fa632ab221546e81b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab219bc2425e6580d0667d3165b9c660b"><td class="memItemLeft" align="right" valign="top"><a id="ab219bc2425e6580d0667d3165b9c660b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isDirty</b> {true}</td></tr>
<tr class="separator:ab219bc2425e6580d0667d3165b9c660b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1960dd95c0c38dda4a26422de4c981b4"><td class="memItemLeft" align="right" valign="top"><a id="a1960dd95c0c38dda4a26422de4c981b4"></a>
struct <a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data_1_1_info.html">pepr3d::Geometry::OpenGlData::Info</a>&#160;</td><td class="memItemRight" valign="bottom"><b>info</b></td></tr>
<tr class="separator:a1960dd95c0c38dda4a26422de4c981b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>All OpenGL buffers of the <a class="el" href="classpepr3d_1_1_geometry.html" title="The whole geometry of a model that the user is painting.">Geometry</a>. </p>
</div><hr/>The documentation for this struct was generated from the following file:<ul>
<li>D:/Home/MFF/1-Mgr/projekt/pepr3d/src/geometry/<a class="el" href="_geometry_8h_source.html">Geometry.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacepepr3d.html">pepr3d</a></li><li class="navelem"><a class="el" href="classpepr3d_1_1_geometry.html">Geometry</a></li><li class="navelem"><a class="el" href="structpepr3d_1_1_geometry_1_1_open_gl_data.html">OpenGlData</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
